<?php
$menu = $this->uri->segment(2,0);
if($menu=="0"){$menu="dash";}
//echo $menu;
$col = "bgcolor='#e8e8e8'"; 
$red = "bgcolor='#0054ff'";
?>
<table width="0" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="10%">&nbsp;</td>
    <td width="3%" class="bg-default"></td>
    <td width="94%">
     <table id="lpanel" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="27">
        <td <?php if($menu=="home"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>"><div class="home<?php if($menu=="home"){echo "-active";}?> cur-pointer bold <?php if($menu=="home"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Home</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="dash"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash"><div class="dash<?php if($menu=="dash"){echo "-active";}?> cur-pointer bold <?php if($menu=="dash"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Dashboard</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/member"><div class="member<?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo "-active";}?> cur-pointer bold <?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Member</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="category" || $menu=="category_add" || $menu=="category_edit" || $menu=="category_open"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/category"><div class="category<?php if($menu=="category" || $menu=="category_add" || $menu=="category_edit" || $menu=="category_open"){echo "-active";}?> cur-pointer bold <?php if($menu=="category" || $menu=="category_add" || $menu=="category_edit" || $menu=="category_open"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Category</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="content" || $menu=="content_add"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/content"><div class="content<?php if($menu=="content" || $menu=="content_add" || $menu=="content_edit"){echo "-active";}?> cur-pointer bold <?php if($menu=="content" || $menu=="content_add" || $menu=="content_edit"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Content</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="album" || $menu=="openalbum" || $menu=="openimages"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/album"><div class="album<?php if($menu=="album" || $menu=="openalbum" || $menu=="openimages"){echo "-active";}?> cur-pointer bold <?php if($menu=="album" || $menu=="openalbum" || $menu=="openimages"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>album</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="message" || $menu=="openmessage" || $menu=="openimages"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/message"><div class="message<?php if($menu=="message" || $menu=="openmessage" || $menu=="openimages"){echo "-active";}?> cur-pointer bold <?php if($menu=="message" || $menu=="openmessage" || $menu=="openimages"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Message</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>dash/quiz"><div class="quiz<?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo "-active";}?> cur-pointer bold <?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Quiz</div></a></td>
      </tr>
    </table>
   </td>
  </tr>
</table>